import { Button, Result } from 'antd';
import { useNavigate } from 'react-router-dom';

export const NotPermission = () => {
  const navigate = useNavigate();
  return (
    <div className='flex justify-center items-center h-screen'>
      <Result
      status="403"
      title="暂无权限"
      subTitle="很抱歉你暂无权限访问此页面"
      extra={<Button type="primary" onClick={() => navigate("/")}>回到主页</Button>}
    />
    </div>
  )
}
